import {createRouter,createWebHistory} from 'vue-router';



const router=createRouter({
  history:createWebHistory(import.meta.env.BASE_URL),
  routes:[
    {
      path:'/',
      component:()=>import('@/view/Layout/index.vue'),
      children:[
        {
          path:'',
          component:()=>import('@/view/Home/index.vue')
        },
        {
          path:'category',
          component:()=>import('@/view/Category/index.vue')
        }
      ]
    },
    {
      path:'/login',
      component:()=>import('@/view/Login/index.vue')
    }


  ]


})

export default router